package cn.tedu.ivos2.application.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class ApplicationSaveParam {
    @ApiModelProperty("用车申请表id")
    private Long id;
    @ApiModelProperty("申请人id")
    private Long userId;
    @ApiModelProperty("申请人姓名")
    private String username;
    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty("驾照图片")
    private String imgUrl;
    @ApiModelProperty("出发地")
    private String departureAddr;
    @ApiModelProperty("目的地")
    private String destinationAddr;
    @ApiModelProperty("用车原因")
    private String reason;
    @ApiModelProperty("其它备注信息")
    private String remark;
    @ApiModelProperty("申请状态")
    private String status;
    @ApiModelProperty("分配的车辆id")
    private Long vehicleId;
    @ApiModelProperty("驳回原因")
    private String rejectReason;
    // 瞬态属性(业务临时使用，不存数据库)
    @ApiModelProperty("审批人id集合")
    private List<Long> auditUserIdList;
}
